Skip to content

feat: add accessibility support (WCAG 2.1/2.2 AA, Section 508, VoiceOver, TalkBack)#59

Merged
mayank-patel merged 1 commit into
mainfrom
feat/accessibility-support
Apr 8, 2026
Merged

feat: add accessibility support (WCAG 2.1/2.2 AA, Section 508, VoiceOver, TalkBack)#59
mayank-patel merged 1 commit into
mainfrom
feat/accessibility-support

Conversation

@mayank-patel

Copy link
Copy Markdown
Owner

Summary

  • Add WCAG 2.1/2.2 AA and Section 508 accessibility compliance to floating label components
  • Add VoiceOver (iOS) and TalkBack (Android) support with proper accessibilityLabel, accessibilityHint, and accessibilityState props
  • Expand test coverage with 127 new lines covering accessibility behavior

Test plan

  • Verify floating labels announce correctly with VoiceOver on iOS
  • Verify floating labels announce correctly with TalkBack on Android
  • Run npm test — all accessibility tests pass
  • Confirm no regressions in existing label float/focus behavior

…ver, TalkBack)

- Auto-derive accessibilityLabel from children string; explicit prop overrides
- Auto-set accessibilityState.disabled when disabled={true}; consumer values merged/win
- Auto-set textContentType and autoComplete to "password" for secureTextEntry fields; overridable
- Add errorMessage and helperText props with accessibilityLiveRegion="polite" announcements
- Add 17 new accessibility tests (38 total, all passing)
- Add Accessibility section to README with examples, focus/touch guidance, and VoiceOver/TalkBack checklist
- Update props table with errorMessage, helperText, and improved descriptions

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@mayank-patel mayank-patel merged commit 5c415ba into main Apr 8, 2026
1 check passed
@mayank-patel mayank-patel deleted the feat/accessibility-support branch April 8, 2026 05:55
@github-actions

github-actions Bot commented Apr 8, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 2.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant